﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using System.Web.Routing;
using System.Web;
 

namespace BIZ
{
    public class Login: ActionFilterAttribute
    {
        public override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            if (HttpContext.Current.Session["user"] == null)
            {
                HttpContext.Current.Response.Redirect("/Login.html?from=" + BIZ.commonTool.urlEncode(HttpContext.Current.Request.Url.ToString()));
            }
        }
    }
}
